package me.qi.kancha.dto.core;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import me.qi.kancha.dto.base.BaseDTO;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @author sun
 * @TableName rule_allow
 */
@TableName(value ="rule_allow")
@Data
public class RuleAllowDTO extends BaseDTO implements Serializable {

    /**
     * 方法（多个以,隔开，**代表所有）
     */
    @TableField(value = "method")
    private String method;

    /**
     * 权限规则编号
     */
    @TableField(value = "rule_code")
    private String ruleCode;

    /**
     * 服务名称
     */
    @TableField(value = "server_name")
    private String serverName;

    /**
     * 允许url地址
     */
    @TableField(value = "url")
    private String url;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}